<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String error = (String)request.getAttribute("error");
	String message = "";
	if(error != null) {
		message = error;
	}
	if (session.getAttribute("customer") != null) {
		session.removeAttribute("customer");
	}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>我mai:登录</title>

		<link rel="stylesheet" type="text/css" href="css/my.css">

	</head>

	<body>
	<html:errors/>
		<form action="loginAction.do" method="post">
			
			<table width="50%" border="0" align="center">
				<tr>
					<td>
						<img src="img/1.bmp" />
					</td>
				</tr>
				<tr>
					<td class="style1">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td class="style1">
						登陆
					</td>
				</tr>
				<tr>
					<td class="style1">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td class="style1">
						您的注册邮箱是什么？
					</td>
				</tr>
				<tr>
					<td>
						&nbsp;
					</td>
				</tr>
				<tr>
					<td>
						<span class="style2">&nbsp;&nbsp;我的注册邮箱是:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<label></label>
						<input name="email" type="text" size=30 />
					</td>
				</tr>
				<tr>
					<td class="style1">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td class="style1">
						您的密码是什么？
					</td>
				</tr>
				<tr align="center">
					<td align="left">
						&nbsp;
					</td>
				</tr>
				<tr align="center">
					<td align="left">
						<label></label>
						<label></label>
						<span class="style2">&nbsp;&nbsp;我的密码是:&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input name="password" type="password" id="password" />
					</td>
				</tr>
				<tr>
					<td>
						&nbsp;
					</td>
				</tr>
				<tr>
					<td>
						<label>
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input name="login" type="submit" id="login" value="登录" />
							<font color='red'><%=message %></font>
						</label>
					</td>
				</tr>
				<tr>
					<td>
						&nbsp;
					</td>
				</tr>
				<tr>
					<td>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="register.jsp">免费注册</a>
					</td>
				</tr>
				<tr>
					<td>
						<hr />
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
